#include <string>
#include <iostream>
#include "pub/err.h"
#include "pub/log.h"
#include "biz/pub_sys.h"
#include "biz/pub_serial.h"
#include "test_pub_serial.h"

using namespace std;
using namespace oracle::occi;

TestPubSerial::TestPubSerial()
{
	serial = new PubSerial(conn);
	sys = new PubSystem(conn);

	sys->init();
	serial->tradeDate = sys->tradeDate;
}

TestPubSerial::~TestPubSerial()
{
	delete sys;
	delete serial;
}

void TestPubSerial::test_genOrderSerial()
{
	Log::debug("开始测试 PubSerial::genOrderSerial");

	serial->genOrderSerial();
}

void TestPubSerial::test_genAppSerial()
{
	Log::debug("开始测试 PubSerial::genAppSerial");
	serial->genAppSerial();
}

void TestPubSerial::test_genAckSerial()
{
	Log::debug("开始测试 PubSerial::genAckSerial");
	serial->genAckSerial();
}

void TestPubSerial::test_genLogSerial()
{
	Log::debug("开始测试 PubSerial::genLogSerial");
	serial->genLogSerial();
}

